<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数接收参数并弹出</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div{
            display: flex;            
        }
    </style>
</head>
<body>
    <div>
        <input type="text" name="" id="ipt1" value="河南省" placeholder="请填入您想写的内容">
        <input type="text" name="" id="ipt2" value="安阳市" placeholder="请填入您想写的内容">
        <button onclick="btn()">弹出</button>
    </div>

    <!-- <p id="p"></p> -->
    

    <script>
        var ipt1 = document.getElementById('ipt1')
        var ipt2 = document.getElementById('ipt2')

        function btn(){
            alert( ipt1.value)
            alert( ipt2.value)
            console.log(1 );
        }

        // document.getElementById('p').innerHTML = '<p><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i1/4134225718/O1CN011s6tA1vX4G8hLLA_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i6.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6tA1vZ96eqZsr_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i7.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i2/4134225718/O1CN011s6tA3DLclskqs6_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i8.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i4/4134225718/O1CN011s6tA1DUHgPiE2d_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i9.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6t9vkup0LRlCG_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i10.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6tA2qDpJa9sr9_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i0.591c48abotbO5M" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i4/4134225718/O1CN011s6tA1VUSl5L792_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i2/4134225718/O1CN011s6t9vku1BsbKeo_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6tA2JHiYfv0XK_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6tA01t8vWMNub_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i2/4134225718/O1CN011s6tA1vYseCmCxv_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i2/4134225718/O1CN011s6tA2JHiaJAiNR_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i2/4134225718/O1CN011s6tA01sL8d3mKD_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i3/4134225718/O1CN011s6tA1VUrpntRXW_!!4134225718.jpg" width="790" align="absmiddle" /><img class="img-ks-lazyload" src="https://img.alicdn.com/imgextra/i4/4134225718/O1CN011s6tA2H1g9yk8i2_!!4134225718.jpg" width="790" align="absmiddle" data-spm-anchor-id="a220o.1000855.0.i2.591c48abotbO5M" /></p>'

    </script>
</body>
</html>